package com.itheima.entry;

import com.itheima.controller.impl.StudentControllerImpl;
import com.itheima.controller.impl.TeacherControllerImpl;

import java.util.Scanner;

public class ManagerInfoEntry {
    public static void main(String[] args) {
        StudentControllerImpl studentController = new StudentControllerImpl();
        TeacherControllerImpl teachertController = new TeacherControllerImpl();
        Scanner sc = new Scanner(System.in);
        while (true) {
            System.out.println("--------欢迎来到黑马信息管理系统--------");
            System.out.println("请输入您的选择: 1.学生管理  2.老师管理  3.退出");
            String chose = sc.nextLine();
            switch (chose) {
                case "1":
                    System.out.println("进入学生系统");
                    studentController.start();
                    break;
                case "2":
                    System.out.println("进入教师系统");
                    teachertController.start();
                    break;
                case "3":
                    System.out.println("感谢使用,再见");
                    System.exit(0);
                    break;
                default:
                    System.out.println("请输入正确指令");
            }
        }


    }
}
